class_name Stats
extends HBoxContainer

@onready var armorBox:HBoxContainer=$Armor
@onready var healthBox:HBoxContainer=$Health
@onready var hp:Label=%Hp
@onready var armor:Label=%Armor

func render(stats:StatsSrc)->void:
	armor.text=str(stats.armor)
	hp.text=str(stats.health)
	armorBox.visible = stats.armor>0
	healthBox.visible = stats.health>0





